<include file="__THEME__/header" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../Public/space.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Public/space_index.js"></script>
<script>
   var MID = '{$mid}';
</script>
<script type="text/javascript" src="../Public/feed.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.scrollTo.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/Share.js"></script>

<style>
        .ta_wqfw {
                background:transparent url(../Public/images/privacy_bg.gif) no-repeat scroll center top;
                font-size:14px;
                height:60px;
                overflow:hidden;
                padding:25px 0 0 75px;
        }
</style>
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />

<div class="content"><!-- 内容 begin  -->



        <div class="main"> <!-- 右侧内容 begin  -->
   <include file="__THEME__/apps" />
                <include file="../Public/home_right" />

                <div class="cc">
                        <div class="user_info"><!-- 用户资料 begin  -->
                                <div class="user_img">
                                        <div class="img" id="host_face"><img src="{$uid|getUserFace='middle'}" /></div>
                                        <div id="my_face" style="display:none"><img src="{$mid|getUserFace='small'}" /></div>
                                        <div class="menu bg01">
                                                <php>if($uid == $mid){</php>
                                                <a href="__APP__/Info/face" title="发短消息">更改头像</a>
                                               
                                                <a href="__TS__/Account">修改账号</a>
                                                
                                                <php>}elseif($mid){</php>
                                                <php>if( $is_friend ){</php>
                                                <php>if( $space_privacy ){</php>
                                                <a href="__APP__/Space/detail/uid/{$uid}" title="详细资料">详细资料</a>
                                                <a href='javascript:go_wall()' title="给{$show_sex}留言">给{$show_sex}留言</a>
                                                <php>}</php>
                                                <a href="__APP__/Notify/write/uid/{$uid}" title="发短消息">发短消息</a>
                                                <a href="javascript:void(0);" onclick="ts_sharePop('{$uid}','__URL__')" title="分享{$show_sex}">分享好友</a>
                                                <php>}else{</php>
                                                <php>if( $space_privacy ){</php>
                                                <a href="__APP__/Space/detail/uid/{$uid}" title="详细资料">详细资料</a>
                                                <a href='javascript:go_wall()' title="给{$show_sex}留言">给{$show_sex}留言</a>
                                                <php>}</php>
                                                <a href="__APP__/Notify/write/uid/{$uid}" title="发短消息">发短消息</a>
                                                <a href="javascript:Win({message:'__APP__/Friend/isAdd/uid/<?php echo $uid; ?>',width:392,height:220,title:'加为好友',handler:handlerIframe,autoClose:false,iframe:true,allowRightMenu:true});" title="加为好友">加为好友</a>
                                                <php>}</php>
                                                <php>}</php>
                                                <div class="c"></div>
                                        </div>
                                </div>
                                <div class="Linfo">
                                        <div class="info">
                                                <h2 id="host_name">{$uid|getUserName} {$uid|getUserGroupIcon}</h2>
                                                <h2 id="my_name" style="display:none">{$my_name}</h2>
                                                <php>
                                                                if($mid != $uid){
                                                                $href = "__ROOT__/apps/mini/index.php?s=/Index/friends/uid/".$the_mini['uid'];
                                                                }else{
                                                                $href = "__ROOT__/apps/mini/index.php?s=/Index/my";
                                                                }
                                                </php>
                                                <php>if($space_privacy){</php><p><span>{$the_mini.content}</span><span><em>{$the_mini.cTime|friendlyDate}</em></span><span><a href="{$href}">更多</a></span></p><php>}</php>

                                                <php>if($space_privacy){</php>     <!--隐私控制-->
                                                <ul>
                                                        <php>if(!empty($rank)){</php><li><span class="l cGray2">等级：</span><span class="r cBlue" style="margin-top:6px;"><img src="<php>echo THEME_URL;</php>/images/group/{$rank['icon']}" title="{$rank['name']}" alt="{$rank['name']}"/></span></li><php>}</php>
                                                        <volist name="credit" id="vo" k="key">
                                                                <li><span class="l cGray2">{$key}：</span><span class="r cBlue">{$vo}</span></li>
                                                        </volist>
                                                </ul>
                                                <ul>
                                                        <php>foreach($userInfo as $k=>$v){</php>
                                                        <li><span class="l cGray2">{$k}：</span><span class="r cBlue">{$v}</span></li>
                                                        <php>}</php>
														
                                                </ul>
                                                <php>}</php>
                                        </div>
                                </div>
                        </div><!-- 用户资料 end  -->
                        <!--用户应用--><!--用户应用end-->

            <php>if(!$space_privacy){</php>
                        <br/>
                        <php>if($is_hide){</php>
                        <div style="display: block;" class="ta_wqfw" id="limitdiv">{$uid|getUserName}的个人主页目前处于隐藏状态。</div>
                        <php>}else{</php>
                        <div style="display: block;" class="ta_wqfw" id="limitdiv">由于对方的隐私设置，你没有权限查看。</div>
                        <php>}</php>


                        <php>}</php>


                        <php>if($space_privacy){</php>     <!--隐私控制-->

                        <div class="Feed"><!-- 个人动态 begin  -->
                                <div class="tab-menu"><!-- 切换标签 begin  -->
                                        <div class="right lh35" id="divAllFeed"><a href='__APP__/Home/allFeed/type/all/uid/{$uid}'>查看全部动态</a></div>
                                        <ul>
                                                <li><a class="on feed_item" href='javascript:showMessages(false);' ><span>{$show_sex}的动态</span></a></li>
													
												<li>
														<php>if($wall_privacy){</php>
															<a href='javascript:showMessages(true);' id='msgBoard'><span>留言板</span></a>
															<!--<div id="reply_content">
    
    
															</div>														-->
																<!-- 留言板 end  -->
																<php>}</php>
													
												</li>
                                        </ul>
                                </div><!-- 切换标签 end  -->
                                <div class="FList">
                                        <include file="Home:feed" />
														
                                </div>
								<div style="display:none" id="msg">
																<div class="Guestbook" id="wall"><!-- 留言板 begin  -->
																		<div class="tit"><span class="pl5">留言板</span></div>
																		<div class="GB_box">
																				<textarea name="textarea2" cols="" id="wall_con"></textarea>
																				<input type="button" class="btn_b" value="留 言" id="sub_button" onclick="wall()"/>
																				(每条最多2000字)     
																				<label><input type="checkbox" name="privacy" id="wall_privacy" value="1"/>悄悄话</label>
																				<input type="hidden" name="uid" id="space_uid" value="{$uid}">
																				<input type="hidden" id="my_name2" value="{$my_name}">
																				<span style="display:none" id="my_face2"><img src="{$mid|getUserFace='middle'}" /></span>
																		</div>
																</div>
																<div class="GBList" id="list_wall">

																		<volist name="my_walls['data']" id="wall">
																				<div class="Gli" id="wall_item_{$wall.id}">
																						<div class="user_img"><span class="headpic50"><a href='__TS__/space/{$wall.fromUserId}' class="tips" rel="__TS__/Index/userInfo/uid/{$wall.fromUserId}"><img src="{$wall.fromUserId|getUserFace}" /></a></span></div>
																						<div class="LC">
																								<div class="MC">
																										<h4 class="tit_Critique lh25 mb5 pl5"><span class="right"><a href="javascript:wall_reply_dis({$wall.id})">回复</a>
																														<php>if($mid == $uid || $mid == $wall["fromUserId"]){</php>&nbsp;<a href="javascript:wall_del({$wall.id})">删除</a>
																														<php>}</php></span><a href="__TS__/space/{$wall.fromUserId}"><strong>{$wall.fromUserName}</strong></a><span class="cGray2">{$wall.cTime|friendlyDate="full"}</span><span><php>if($wall["privacy"] == 1){</php><font color="red">【悄悄话】</font><php>}</php></span></h4>
																										<p class="WB">
																												{$wall.content|textarea_output}
																										</p>
																										<a id="d-{$vo.id}"href='###' onclick="deleteMini('{$vo.id }')" class="del" title="删除" style="display:none;">删除</a>            </div>
																								<div class="RC">
																										<span id="wall_reply_list_{$wall.id}">
																												<sublist name="wall['replys']" id="reply">
																														<div class="RLI">
																																<div class="user_img"><span class="pic38"><a href="__APP__/space/{$reply.fromUserId}" class="tips" rel="__TS__/Index/userInfo/uid/{$reply.fromUserId}" ><img src="{$reply.fromUserId|getUserFace}" /></a></span></div>
																																<div class="RLC">
																																		<h4 class="tit_Critique lh20 mb5 pl5"> <a href="__APP__/space/{$reply.fromUserId}"><strong>{$reply.fromUserName}</strong></a><span class="cGray2">{$reply.cTime|friendlyDate="full"}</span></h4>
																																		<p>{$reply.content|textarea_output}</p>
																																</div>
																																<div class="c"></div>
																														</div>
																												</sublist>
																										</span>



																										<div class="RLI bg01" style="display:none" id="wall_reply_{$wall.id}">
																												<div class="user_img"><span class="pic38"><img src="{$mid|getUserFace}" /></span></div>
																												<div class="RLC">
																														<div class="input_box">
																																<textarea name="textarea" cols="" style="height:50px; line-height:18px; width:99%" id="wall_reply_con_{$wall.id}"></textarea>
																																<php>if($wall["privacy"] == 1){</php>
																																<input type="checkbox" name="privacy" id="wall_privacy_{$wall.id}" value="1" checked="true" disabled="true"/>悄悄话
																																<php>}</php>
																																<input type="button" id="reply_button" class="btn_b mt5" value="回 复" onclick="wall_reply({$wall.id})"/><input type="button" class="btn_w mt5" value="取 消" onclick="wall_reply_cancel({$wall.id})"/>
																														</div>
																												</div>
																												<div class="c"></div>
																										</div>

																								</div>
																						</div>
																						<div class="c"></div>
																				</div>
																		</volist>
																		<php>if($my_walls['count']>=10){</php><div class="alR"><a href="__URL__/guestbook/uid/{$uid}">查看所有留言</a></div><php>}</php>
																</div>
														</div>
                                <!--<div class="alR lh35"><a href='__APP__/Home/allFeed/type/all/uid/{$uid}'>查看全部动态</a></div>-->
                        </div><!-- 个人动态 end  -->


                        


                        <php>}</php> <!--隐私控制end-->

                </div>


                <div class="c"></div>
        </div><!-- 右侧内容 end  -->

        <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
